|
|
|
|
|
|
|
Connecting Help to the Visual Basic Application |
|
|
|
|
|
|
|
|
After you design and create the help system, which probably includes many of the features discussed, you're ready to add it to your application. You can access help from within your Visual Basic application in three ways: |
|
|
|
|
|
|
|
|
The Windows Common Dialog control |
|
|
|
|
|
|
|
|
Built-in Visual Basic help context features |
|
|
|
|
|
|
|
|
API calls to the WinHelp program |
|
|
|
|
|
|
|
|
Of these three methods, this lesson covers only the first two, which are more directly connected to the Visual Basic commands that you know. You no longer need to use the third, more advanced method of accessing help in a Visual Basic application. To see how to use the first two methods, you'll create a new project that you'll add the different functions and features available to access the help system. |
|
|
|
|
|
|
|
|
Using the Common Dialog Control Again.. |
|
|
|
|
|
|
|
|
The same Common Dialog control that you used for other Windows functions also can display help by running the WinHelp engine. To see how the Common Dialog control accesses help, create a new Visual Basic project and add the controls in Table 17.7 to the default form, using the property settings listed. |
|
|
|
|
| TABLE 17.7. ADDING HELP ACCESS TO THE FORM. | | Control | Property | Value | | Command Button | Name | cmdClose | | Caption | Close | | Command Button | Name | cmdHelp | | Caption | Help | | Common Dialog | Name | dlgHelp | | HelpFile | <path/filename> of your compiled help system |
|
|
|
|
|
|
You can change any other properties for the Common Dialog by using its associated Properties Pages dialog box (see Figure 17.41). |
|
|
|
|
|